package com.springboot.multiplethread.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 线程池参数配置类
 *
 * @author sam
 */
@ConfigurationProperties(prefix = "thread-pool")
@Component
//@EnableConfigurationProperties(ThreadPoolProperties.class)
@Data
public class ThreadPoolProperties {

    private int corePoolSize;

    private int maxPoolSize;

    private int keepAliveTime;

    private int queueCapacity;

    private String threadNamePrefix;

}
